﻿<?php require_once('../Connections/aciitu.php'); ?>
<?php
// Load the tNG classes
require_once('../includes/tng/tNG.inc.php');

// Make unified connection variable
$conn_aciitu = new KT_connection($aciitu, $database_aciitu);

//Start Restrict Access To Page
$restrict = new tNG_RestrictAccess($conn_aciitu, "../");
//Grand Levels: Level
$restrict->addLevel("1");
$restrict->addLevel("2");
$restrict->Execute();
//End Restrict Access To Page

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_aciitu, $aciitu);
$query_RsSite = "SELECT * FROM site ORDER BY id_site DESC";
$RsSite = mysql_query($query_RsSite, $aciitu) or die(mysql_error());
$row_RsSite = mysql_fetch_assoc($RsSite);
$totalRows_RsSite = mysql_num_rows($RsSite);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>.: <?php echo $row_RsSite['site']; ?> | Administração  :.</title>
</head>

<frameset rows="*" cols="166,*" framespacing="0" frameborder="no" border="1">
  <frame src="menu.php" name="menu" scrolling="No" noresize="noresize" id="menu" title="menu" />
  <frame src="conteudo.php" name="conteudo" id="conteudo" title="conteudo" />
</frameset>
<noframes><body oncontextmenu="return false">
</body>
</noframes></html>
<?php
mysql_free_result($RsSite);
?>
